<?php

use Illuminate\Database\Seeder;

class WorksSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        \Illuminate\Support\Facades\DB::insert(<<<EOF
INSERT INTO tree.works (id, course_id, type, question, data, created_at, updated_at) VALUES (1, 1, '2', '以下哪个标签是HTML的合法标签？', '{"correct_selections":[0,1],"selections":[{"value":"a"},{"value":"b"},{"value":"c"},{"value":"d"}]}', '2019-11-27 10:38:06', '2019-11-27 10:38:06');
EOF
        );
        \Illuminate\Support\Facades\DB::insert(<<<EOF
INSERT INTO tree.works (id, course_id, type, question,  created_at, updated_at) VALUES (2, 3, '3', '请上传作业',  '2019-11-27 10:38:06', '2019-11-27 10:38:06');
EOF
        );
    }
}
